<?php

error_reporting(E_ALL);
ini_set("display_errors", 1);


echo "<div >";
echo form_open($ctlFormAction);
echo form_fieldset();

echo form_hidden("h_tipe", "");

echo form_hidden("h_id", "");

echo "<div class='form-slide'>";

//form1
echo "<div class='form1 form'>";
echo heading("Input : ", "2");
$data = array(
    'name' => 'b_tipe',
    'class' => 'next',
    'value' => 'anak',
    'type' => 'button',
    'content' => 'Anak'
);
echo form_button($data);
$data = array(
    'name' => 'b_tipe',
    'class' => 'next',
    'value' => 'pasangan',
    'type' => 'button',
    'content' => 'Pasangan'
);
echo form_button($data); 
echo "</div>";
//end form1

//form2
echo "<div class='form2 form'>";
echo heading(" ", "2");
echo form_input("search", "" , "class='search'");


echo "<div class='list'>";

$data = $ctlDataMember;
foreach ($data as $key => $arrVal) {
	echo form_button($arrVal);
}
	
echo "</div>";

echo "</div>";
//end form2

//form3
echo "<div class='form3 form'>";
echo heading("Biodata : ", "2");
echo "<div class='msg'></div>";

echo "<div>";
echo form_label("Nama : ");
echo form_input('nama');
echo "</div>";

echo "<div>";
echo form_label("Tempat Lahir : ");
echo form_input('tempat_lahir');
echo "</div>";

echo "<div>";
echo form_label("Tanggal Lahir : ");
echo form_input('tanggal_lahir');
echo "</div>";

$jk = array (
	'L' => 'laki-laki',
	'P' => 'perempuan'
);
echo "<div>";
echo form_label("Jenis Kelamin : ");
echo form_dropdown('jenis_kelamin',$jk);
echo "</div>";

echo "<div>";
echo form_label("telepon : ");
echo form_input('telp');
echo "</div>";

echo "<div>";
echo form_label("email : ");
echo form_input('email');
echo "</div>";

echo "<div class='save-button'>";
echo form_submit('submit', "save");
echo "</div>";
echo "</div>";
//end form3

echo "</div>";

echo form_fieldset_close();
echo form_close();

echo form_button("back", "back", "class='prev'");
echo "</div>";
